home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / mewldemo.zip / MEWLDEMO.ZTC < prev   
Text File  |  1991-10-10  |  1KB  |  54 lines

  1. ############################################################################
  2. #                                                                          #
  3. #  MAKEFILE for the TIMEDEMO                                               #
  4. #                                                                          #
  5. ############################################################################
  6.  
  7. # Compiler is 'M' for Microsoft, 'T' for Borland Turbo C
  8. COMPILER = Z
  9. # Model is 
  10. #   1) Microsoft C - 'M' for Medium, 'L' for Large
  11. #   2) Turbo C - 'm' for medium, 'l' for large
  12. MODEL = l
  13.  
  14. # ZORTECH C macros
  15. CC = ztc
  16. OPT = -o
  17. DEBUG = -s -g
  18. CFLAGS = -Ju -Jm -w -b -c -J -m$(MODEL) -DMSC -DDOS -DZORTECH $(OPT)
  19. ASM = masm 
  20. ##LMODEL should be 1 if you want large data
  21. ASMDEBUG = /Zi
  22. ASMFLAGS = /DLMODEL=0 /DTC=0 /mx
  23. LIB = zorlib
  24. #LINK = c:\msc5\link
  25. LINK = blink
  26. LFLAGS = /st:8192 /seg:256 /pack /far
  27.  
  28. # We tack the compiler and model onto the end of the library name, so
  29. # the library for Borland's Turbo C, medium model would be called WINLIBTM.LIB
  30.  
  31. # Inference rules for C and ASM files
  32.  
  33. .c.obj :
  34.     $(CC) $(CFLAGS) $*.c
  35.  
  36. .asm.obj :
  37.     $(ASM) $(ASMFLAGS) $*;
  38.  
  39. .rc.res :
  40.     \mewel\rc $*
  41.  
  42.  
  43. DEMO = mewldemo
  44. OBJS = $(DEMO).obj
  45.  
  46. $(DEMO).obj :   $(DEMO).c
  47.  
  48. $(DEMO).res :   $(DEMO).rc
  49.  
  50. $(DEMO).exe :   $(OBJS) $(DEMO).res
  51. # Microsoft
  52.   $(LINK) $(LFLAGS) $(OBJS),$(DEMO),nul,winlib$(COMPILER)$(MODEL).lib;
  53.   \mewel\rc mewldemo.res
  54.